﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ReservationDetailTable.ascx.cs" Inherits="blackhouse.StareKino.QuartzActions.ASyncMails.ReservationDetailTable" %>

<table cellspacing="0" style="background-color: #F4EBE7; margin-top: 15px; width: 100%;" cellpading="7">
    <tbody>
        <tr>
            <td style="width: 5%; border-bottom: solid 1px #8f7a6f;"></td>
            <td style="border-bottom: solid 1px #8f7a6f; padding: 10px; white-space: nowrap; border-right: solid 1px #8f7a6f"><%=GetGlobalResourceObject("Mails", "mailH1")%>
            </td>
            <td style="border-bottom: solid 1px #8f7a6f; padding: 10px; white-space: nowrap; border-right: solid 1px #8f7a6f"><%=GetGlobalResourceObject("Apartments", "price")%>:
            </td>
            <td style="border-bottom: solid 1px #8f7a6f; padding: 10px; white-space: nowrap; border-right: solid 1px #8f7a6f"><%=GetGlobalResourceObject("Mails", "mailH2")%>:
            </td>
            <td style="border-bottom: solid 1px #8f7a6f; padding: 10px; white-space: nowrap; border-right: solid 1px #8f7a6f"><%=GetGlobalResourceObject("Mails", "mailH3")%>:
            </td>
            <td style="border-bottom: solid 1px #8f7a6f; padding: 10px; white-space: nowrap; border-right: solid 1px #8f7a6f"><%=GetGlobalResourceObject("Reservation", "reservationS5")%>:
            </td>
            <td style="border-bottom: solid 1px #8f7a6f; padding: 10px; white-space: nowrap"><%=GetGlobalResourceObject("Mails", "mailH4")%>:
            </td>
            <td style="width: 5%; border-bottom: solid 1px #8f7a6f;"></td>
        </tr>

        <asp:Repeater runat="server" ID="rptReservationDetails" OnItemDataBound="rptReservationDetails_ItemDataBound">
            <ItemTemplate>

                <tr>
                    <td style="width: 5%; background-color: #F7F2EF; border-bottom: 1px solid #8f7a6f"></td>

                    <td style="padding: 10px; background-color: #F7F2EF; border-right: solid 1px #8f7a6f; border-bottom: 1px solid #8f7a6f">
                        <asp:HyperLink runat="server" ID="lnkToApartment" Font-Underline="false" ForeColor="#382F2B" Target="_blank" />

                    </td>
                    <td style="padding: 10px; background-color: #F7F2EF; border-right: solid 1px #8f7a6f; border-bottom: 1px solid #8f7a6f">
                        <asp:Literal runat="server" ID="ltlPricePerNight" />
                    </td>
<td style="padding: 10px; background-color: #F7F2EF; border-right: solid 1px #8f7a6f; border-bottom: 1px solid #8f7a6f">
                        <asp:Literal runat="server" ID="ltlLengthOfStay" />
                    </td>

                    <td style="padding: 10px; background-color: #F7F2EF; border-right: solid 1px #8f7a6f; border-bottom: 1px solid #8f7a6f">
                        <asp:Literal runat="server" ID="ltlPriceWithoutRabat" />
                    </td>
                    <td style="padding: 10px; background-color: #F7F2EF; border-right: solid 1px #8f7a6f; border-bottom: 1px solid #8f7a6f">
                        <asp:Literal runat="server" ID="ltlRabat" />
                    </td>
                    <td style="padding: 10px; background-color: #F7F2EF; color: #39a7c6; font-weight: bold; border-bottom: 1px solid #8f7a6f">
                        <asp:Literal runat="server" ID="ltlFinalPrice" />
                    </td>
                    <td style="width: 5%; background-color: #F7F2EF; border-bottom: 1px solid #8f7a6f"></td>
                </tr>

            </ItemTemplate>
        </asp:Repeater>
         <asp:Repeater runat="server" ID="rptReservationServices" OnItemDataBound="rptReservationServices_ItemDataBound">
            <ItemTemplate>

                <tr>
                    <td style="width: 5%; background-color: #F7F2EF; border-bottom: 1px solid #8f7a6f"></td>

                    <td style="padding: 10px; background-color: #F7F2EF; border-right: solid 1px #8f7a6f; border-bottom: 1px solid #8f7a6f">
                        <%#Eval("Service.ServiceName") %>
                    </td>
                    <td style="padding: 10px; background-color: #F7F2EF; border-right: solid 1px #8f7a6f; border-bottom: 1px solid #8f7a6f">
                        <asp:Literal runat="server" ID="ltlPricePerNight" />
                    </td>
                    <td style="padding: 10px; background-color: #F7F2EF; border-right: solid 1px #8f7a6f; border-bottom: 1px solid #8f7a6f">
                        <asp:Literal runat="server" ID="ltlQuantity" />
                    </td>
                    <td style="padding: 10px; background-color: #F7F2EF; border-right: solid 1px #8f7a6f; border-bottom: 1px solid #8f7a6f">
                        <asp:Literal runat="server" ID="ltlPriceWithoutRabat" />
                    </td>
                    <td style="padding: 10px; background-color: #F7F2EF; border-right: solid 1px #8f7a6f; border-bottom: 1px solid #8f7a6f">
                        0%
                    </td>
                    <td style="padding: 10px; background-color: #F7F2EF; color: #39a7c6; font-weight: bold; border-bottom: 1px solid #8f7a6f">
                        <asp:Literal runat="server" ID="ltlFinalPrice" />
                    </td>
                    <td style="width: 5%; background-color: #F7F2EF; border-bottom: 1px solid #8f7a6f"></td>
                </tr>

            </ItemTemplate>
        </asp:Repeater>
        <tr>
            <td style="width: 5%; border-top: solid 3px #8f7a6f; background-color: #F7F2EF"></td>
            <td colspan="3" style="padding: 10px 0; padding-right: 10px; background-color: #F7F2EF; border-right: solid 1px #8f7a6f; border-top: solid 3px #8f7a6f; font-weight: bold; text-align: right; color: #39a7c6; font-size: 120%"><%=GetGlobalResourceObject("Reservation", "reservationS4")%>:
            </td>
            
            <td style="border-top: solid 3px #8f7a6f; padding: 10px; background-color: #F7F2EF; border-right: solid 1px #8f7a6f;">
                <asp:Literal runat="server" ID="ltlReservationPriceWithoutRabat" />
            </td>
            <td style="border-top: solid 3px #8f7a6f; padding: 10px; background-color: #F7F2EF; border-right: solid 1px #8f7a6f;">
                <asp:Literal runat="server" ID="ltlReservationRabat" />
            </td>

            <td style="padding: 10px; background-color: #F7F2EF; border-top: solid 3px #8f7a6f; font-weight: bold; color: #39a7c6; font-size: 120%">
                <asp:Literal runat="server" ID="ltlReservationFinalPrice" />


            </td>
            <td style="width: 5%; border-top: solid 3px #8f7a6f; background-color: #F7F2EF"></td>
        </tr>
        <asp:PlaceHolder runat="server" ID="phPaymentType" Visible="false">
        <tr>
            <td colspan="3" style="background-color:#fff"></td>
            <td colspan="5" style="background-color: #FFFFFF; color: #8F7A6F; font-style: italic; padding: 10px 0; text-align: center;"><%=GetGlobalResourceObject("Reservation", "reservationS9")%>: <b><asp:Literal runat="server" ID="ltlPaymentType" /></b>
            </td>
        </tr>
        </asp:PlaceHolder>
    </tbody>
</table>
